package com.i72.product.impl;

import com.i72.goods.api.AppleService;
import com.i72.goods.bean.Student;
import com.i72.product.api.CompluterService;
import com.i72.product.bean.School;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CompluterServiceImpl implements CompluterService {


    @Autowired
    private AppleService apple;

    @Override
    public String get(String v1, Integer v2, int v3) {

        String value = apple.get(v1);

        System.out.println(value);

        return value;

    }

    @Override
    public String get2(School school) {
        /*
        int v = (school.getName()+"-"+school.getArea()).hashCode();
        return new Integer(v).toString();*/

        Student student = new Student();
        student.setName("jiangjun");
        student.setScore(100);
        student.setAge(26);
        return apple.get2(student);
    }
}
